package homework.test4;
/*
定义一个员工类（Employee），私有成员变量：name(姓名),department（部门），salary（薪资）， level（等级），生成相应的get/set方法,
并提供满参构造方法（薪资为int类型，其中等级分为S,A,B三个等级）
 */
public class Employee {
    private String name;
    private String department;
    private int salary;
    private char level;

    public Employee() {
    }

    public Employee(String name, String department, int salary, char level) {
        this.name = name;
        this.department = department;
        this.salary = salary;
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public char getLevel() {
        return level;
    }

    public void setLevel(char level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", department='" + department + '\'' +
                ", salary=" + salary +
                ", level=" + level +
                '}';
    }
}
